const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  userId:state=>state.user?.userInfo?.userId,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  routes:state=>state.user.routes
}
// 模块属性  便捷访问
// 模块中的state
export default getters
